<% content_for :content do %>
<div class="banner">
	<%= image_tag @product.top_cover.url(:large), style: "width:98%" %>
</div>
<div id="main_body">
	<div style="width:60%;text-align: center;margin-left: auto;
    margin-right: auto;">
    <p><h3><%= @product.title %></h3><br/></p>
		<%= @product.content.html_safe %>
	</div>
	<section class="panel">
    <div class="panel-body">
        <ul class="grid cs-style-3">
        		<% @uploads.each do |upload| %>
	            <li>
	                <figure>
	                    <%= image_tag upload.uploaded_file.url(:small) %>
	                    <figcaption>
	                        <a class="fancybox" rel="group" href="<%= upload.uploaded_file.url %>">Take a look</a>
	                    </figcaption>
	                </figure>
	            </li>
            <% end if @uploads %>
        </ul>

    </div>
	</section>
</div>
<%= link_to "下载", @product.pdf_url  if @product.pdf_url %>
<div class="re_m">
	<% if @product.articles.present? %>
  <div class="related"><span>相关文章：</span>
    <ul>
    	<% @product.articles.each do |art| %>
				<li><%= link_to art.title, article_path(art) %></li>
    	<% end %>
   	</ul>
  </div>
  <% end %>
  
	<%= render "share/order_form", {order: @order, product: @product} %>

<% end %>